
@media print {
  @page {
    margin: 0;
  }
  html, body {
    height: 100vh; /* Use 100% here to support printing more than a single page*/
    margin: 0 !important;
    padding: 0 !important;
    overflow: hidden;
    -webkit-print-color-adjust: exact;
    mso-header: none;
    mso-footer: none;
  }
  
  .print_no {
    display: none;
  }
  .print_yes {
    display: block !important;
  }
  .print_title {
    font-size: 22px;
    text-align: center;
  }
  body > .ant-modal-body {
    overflow: hidden !important;
    max-height: none !important;
    height: auto !important;
  }
  .print_yes_width {
    display: block !important;
    width: 80%;
    transform:scale(0.85);
    transform-origin: 0 0;
    padding: 12px;
  }
  .print_yes_width1 {
    display: block !important;
    padding: 0 12px;
    width: 100%;
    margin: 0 auto;
    font-family: 'FangSong', serif;
    // border: 1px #000 solid;
    margin-left: 5px;
  }
  .page-break {
    margin-top: 1rem;
    display: block;
    page-break-before: auto;
  }
  .print_gap{page-break-before: always;}
}

.qrCodeLabel {
  .ant-descriptions-item-label {
    width: 20px;
  }
}

.print_yes {
  display: none;
}

.ant-descriptions-row > td.noBottom {
  padding-bottom: 0 !important;
}

.one-time-order-container {
  .ant-pro-grid-content {
    .ant-pro-grid-content-children {
      .ant-pro-page-container-children-content {
        .ant-pro-table {
          .ant-pro-table-search {
            .ant-form {
              .ant-row {
                .ant-col {
                  &:nth-child(1) {
                    // padding-right: 12px !important;
                    .ant-form-item {
                      .ant-form-item-control {
                        padding-right: 3px !important;
                      }
                      .ant-space {
                        display: flex;
                        justify-content: space-between;

                        .ant-space-item {
                          flex: 2;

                          &:nth-child(2) {
                            flex: 0;
                          }
                        }
                      }
                    }
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}

.service-record {
  background-color: #fff;
  padding: 10px;

  .patient-form {
    .ant-btn {
      margin-top: -10px;
    }
  }

  .order-pro-form {
    .ant-form-item {
      margin-bottom: 10px;
      .ant-form-item-label {
        label {
          font-size: 12px;
        }
      }
      .ant-form-item-control {
        .ant-form-item-control-input-content {
          font-size: 12px;
        }
        .ant-input-affix-wrapper {
          padding: 0 11px;
          font-size: 12px;

          .ant-input {
            height: 24px;
            font-size: 12px;
          }
        }

        .ant-input-number-input-wrap {
          .ant-input-number-input {
            height: 24px;
            font-size: 12px;
          }
        }
      }

      .ant-select {

        .ant-select-selector {
          font-size: 12px;
          height: 24px;

          .ant-select-selection-placeholder {
            line-height: 24px;
          }
        }
      }
    }
  }

  .header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    .ant-form-item {
      margin-bottom: 0;
    }

    .title {
      font-size: 14px;
      font-weight: bold;
      color: #000;
    }

    .btns {
      font-size: 12px;
    }

    .fwb {
      font-weight: bold;
    }
  }

  .info-body {
    padding-bottom: 20px;

    .row {
      margin-bottom: 15px;
    }
  }

  .ant-card-body {
    padding: 0 !important;

    .ant-pro-table-list-toolbar-right {
      font-size: 12px;
    }
  }
}

.eyeinfo {
  input {
    padding: 2px 0 !important;
  }
  .ant-form-item {
    margin-bottom: 5px;
  }
  .doctor-select {
    .ant-select-selection-item {
      line-height: 24px;
    }
  }
}
.onceTable {
  table {
    // margin-top: 5px !important;
  }
}

.onceOrderTable {
  .ant-card {
    padding-top: 8px !important;
  }
}
.onceOrderTotal {
  .ant-descriptions-item-content {
    display: flex;
    align-items: center;
  }
  .ant-descriptions-item {
    padding-bottom: 0 !important;
  }
}

.specSelectOption {
  &:global(.ant-select-item-option-disabled) {
    :global {
      .spec-option-value {
        color: #bbb;
        background-color: #f0f0f0;
      }
    }
  }

  :global {
    .spec-option-label {
      border: 1px solid #ccc;
      border-right-color: #ddd;
      display: inline-block;
      padding: 0 3px 0 2px;
      line-height: 22px;
      background-color: #f0f0f0;
      color: #aaa;
    }

    .spec-option-value {
      border: 1px solid #ccc;
      display: inline-block;
      padding: 0 2px 0 4px;
      line-height: 22px;
      border-left: unset;
      background-color: #fff;
      color: #000;
    }
  }
}
